#include "jlistview.h"
#include <QLabel>

namespace QTE
{

JListView::JListView(QWidget *parent) :
	QListView(parent),
	JItemContainer(this)
{

}

JListView::~JListView()
{

}

void JListView::setMessageLabelMode(MsgLabelMode mode)
{
	JItemContainer::setMessageLabelMode(mode);

	if( mode == Auto )
		messageLabel()->setVisible(model()->rowCount() == 0);
}

} //namespace QTE
